/**
 * Created by 51ibm on 2017/4/9.
 */
import React, {Component} from 'react';
import {
    Alert
} from 'react-native';

import Toast from 'react-native-root-toast';

export default class ToastUtil {
    static show(hint,cfg) {
        const toastCfg = Object.assign({},{
            position:Toast.positions.CENTER,
            duration:Toast.durations.SHORT,
            animation:true,
        },cfg)
        Toast.show(hint,toastCfg);
    }
}